import { createRouter, createWebHashHistory } from 'vue-router'
import Home from "../views/home/Home.vue";
import Category from "../views/category/Category.vue";
import Cart from "../views/cart/Cart.vue";
import User from "../views/user/User.vue";
const routes = [
   {
    path: '/',
    name: 'Home',
    component: Home
  }, 
  {
    path: '/category',
    name: 'Category',
    component: Category
  }, 
  {
    path: '/cart',
    name: 'Cart',
    component: Cart
  }, 
  {
    path: '/user',
    name: 'User',
    component: User
  }, 
  
]

const router = createRouter({
  history: createWebHashHistory(),
  routes
})

export default router
